
/**
 * 强类型风格的 class
 */
export default class Person {
  name: string
  age: number

  constructor(name: string, age: number) {
    this.name = name
    this.age = age
  }

  set $state(val: Person) {
    Object.assign(this, val)
  }
}